package com.gitee.urick.union.utils;

/**
 * 修改记录
 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 * 修改日期				修改者						备注信息
 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 * 2020年08月20日			kkroc							初始化版本
 */
public enum TipsCode {
    System_Error(CodeLevel.Error, "发生未知错误，请联系管理员"),
    System_Processing(CodeLevel.Info, "请求处理中"),
    System_Not_Found_Error(CodeLevel.Error, "请求失败，资源：%1$s 不存在"),
    Params_Failed(CodeLevel.Error, "系统错误，报文解析失败"),
    Params_Sign_Validate_Failed(CodeLevel.Error, "签名验证失败"),
    Params_Input_Error(CodeLevel.Error, "参数错误；%1$s");

    private final CodeLevel level;
    private final String pattern;

    TipsCode(CodeLevel level, String pattern) {
        this.level = level;
        this.pattern = pattern;
    }

    public CodeLevel getLevel() {
        return level;
    }

    public String getPattern() {
        return pattern;
    }
}
